import request from "../common/axios";

/**
 * 黑广播信息
 * @param data
 * @returns {AxiosPromise}
 */
export function getBlackBoard(data) {
    return request({
        url: '/d/broadcast/text',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}

/**
 * 查询黑广播信息
 * @param data
 * @returns {AxiosPromise}
 */
export function selectBlackBoard(data) {
    return request({
        url: '/d/broadcast/text',
        method: 'post',
        data,
        headers: {'Content-Type': 'application/json'}
    });
}

/**
 * 修改黑广播信息
 * @param data
 * @returns {AxiosPromise}
 */
export function editBlackBoard(data) {
    return request({
        url: '/d/broadcast/text',
        method: 'patch',
        data,
        headers: {'Content-Type': 'application/json'}
    });
}

/**
 * 按区域查询黑广播信息
 * @param data
 * @returns {AxiosPromise}
 */
export function getBlackBoardRegion(data) {
    return request({
        url: '/d/broadcast/region',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}

/**
 * 下拉框信息
 * @returns {AxiosPromise}
 */
export function getBlackBoardInfo() {
    return request({
        url: '/d/broadcast/info',
        method: 'get',
        headers: {'Content-Type': 'application/json'}
    });
}